package com.bluetooth.lib;

import android.content.Context;

import com.bluetooth.lib.client.BluetoothClient;
import com.bluetooth.lib.server.BluetoothServer;
import com.bluetooth.lib.util.F;

public class BluetoothUtil {
	public static int DISCOVERABLE_TIME = 60*60;//3600秒
	
	public static String UUID = "00001101-0000-1000-8000-00805F9B34FB";
	
	public static String BLUETOOTH_RECV_PATH = F.getExternalPath()+"/BluetoothRecv";
	
	
	
	/**
	 * 1 Rfcomm
	 * 2 InsecureRfcomm
	 * */
	public static int SOCKET_TYPE = 2;
	
	public static boolean LOG = true;
	
	
	/**
	 * 1 发送utd数据
	 * 2 发送byte[]类型
	 * 3 发送文件
	 * */
	public static final int SEND_TYPE_UTF = 1;
	public static final int SEND_TYPE_DATA = 2;
	public static final int SEND_TYPE_FILE = 3;
	
	
	/**
	 * 创建BluetoothClient
	 * */
	public static BluetoothClient createBluetoothClient(Context context){
		return new BluetoothClient(context);
	}
	
	/**
	 * 创建BluetoothServer
	 * */
	public static BluetoothServer createBluetoothServer(Context context){
		return new BluetoothServer(context);
	}
	
	
	
	
}
